import service from '@/utils/request'

// @Tags MindScale
// @Summary 创建MindScale
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.MindScale true "创建MindScale"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /MindScale/createMindScale [post]
export const createMindScale = (data) => {
  return service({
    url: '/mindScale/createMindScale',
    method: 'post',
    data
  })
}

// @Tags MindScale
// @Summary 删除MindScale
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.MindScale true "删除MindScale"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /MindScale/deleteMindScale [delete]
export const deleteMindScale = (data) => {
  return service({
    url: '/mindScale/deleteMindScale',
    method: 'delete',
    data
  })
}

// @Tags MindScale
// @Summary 删除MindScale
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除MindScale"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /MindScale/deleteMindScale [delete]
export const deleteMindScaleByIds = (data) => {
  return service({
    url: '/mindScale/deleteMindScaleByIds',
    method: 'delete',
    data
  })
}

// @Tags MindScale
// @Summary 更新MindScale
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.MindScale true "更新MindScale"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /MindScale/updateMindScale [put]
export const updateMindScale = (data) => {
  return service({
    url: '/mindScale/updateMindScale',
    method: 'put',
    data
  })
}

// @Tags MindScale
// @Summary 用id查询MindScale
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.MindScale true "用id查询MindScale"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /MindScale/findMindScale [get]
export const findMindScale = (params) => {
  return service({
    url: '/mindScale/findMindScale',
    method: 'get',
    params
  })
}

// @Tags MindScale
// @Summary 分页获取MindScale列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.PageInfo true "分页获取MindScale列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /MindScale/getMindScaleList [get]
export const getMindScaleList = (params) => {
  return service({
    url: '/mindScale/getMindScaleList',
    method: 'get',
    params
  })
}
